﻿using SqlHelper;
using System; 

namespace Model.Permission
{
    public class UserMenu : EntityBase
    {
        public UserMenu()
        {
            PrimaryKey = "UserMenuID";
            TableName = "TUserMenu";
            AllField = "UserMenuID,UserID,MenuID,HasPermission,MenuName,CreateTime,ParentID,UpdateTime";
            KeyStatus = KeyStatus.Identity;
            OrderBy = " order by CreateTime desc ";
        }

        /// <summary>
        /// 用户菜单ID
        /// </summary>
        public int? UserMenuID { set; get; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public int? UserID { set; get; }
         
        /// <summary>
        /// 菜单ID
        /// </summary>
        public int? MenuID { set; get; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        public string MenuName { set; get; }

        /// <summary>
        /// 是否拥有权限
        /// </summary>
        public int? HasPermission { set; get; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { set; get; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { set; get; }

        /// <summary>
        /// 父级ID
        /// </summary>
        public int? ParentID { set; get; } 
    }
}
